package com.zerui.manager.web.cmd;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.Set;

/**
 * @Author wh
 * @create_time 2023-08-25 13:49
 */
@Getter
@Setter
@ToString
public class DeviceOperateDoorCmd {

    @ApiModelProperty(value="设备id")
    @NotEmpty(message = "设备id不能为空")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Set<Long> deviceIds;

    // open_door(开门)  normally_close（关门）  normally_open（常开）  normally_off（常关）
    @NotBlank(message = "操作指令不能为空")
    private String operate;

    private String ip;

}
